package com.ruoyi.wms.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 物料借用对象 wms_borrow
 * 
 * @author Yunzhh
 * @date 2021-11-05
 */
public class WmsBorrow extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String borrowUuid;

    /** 仓库（字典表） */
    @Excel(name = "仓库", readConverterExp = "字=典表")
    private String wmsDictWarehouse;

    /** 用途（字典表） */
    @Excel(name = "用途", readConverterExp = "字=典表")
    private String wmsDictUseType;

    /** 归还计划(日期) */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "归还计划(日期)", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnBackSchedule;

    /** 归还日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "归还日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnBackDt;

    /** 状态（正常、停用，字典表） */
    @Excel(name = "状态", readConverterExp = "正=常、停用，字典表")
    private String sysNormalDisable;

    /** 单据标题 */
    @Excel(name = "单据标题")
    private String docTitle;

    /** 单据编号 */
    @Excel(name = "单据编号")
    private String docNum;

    /** 单据时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "单据时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date docDt;

    /** 备注 */
    @Excel(name = "备注")
    private String docNote;

    /** 经办人ID（用户表ID） */
    @Excel(name = "经办人ID", readConverterExp = "用=户表ID")
    private Long fkAttentionUserId;

    /** 审核人（用户表ID） */
    @Excel(name = "审核人", readConverterExp = "用=户表ID")
    private Long fkConfirmUserId;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date confirmDt;

    /** 审核结果（字典表） */
    @Excel(name = "审核结果", readConverterExp = "字=典表")
    private String oaDictConfirmStatus;

    /** 审核意见 */
    @Excel(name = "审核意见")
    private String confirmNote;

    /** 物料借用单明细信息 */
    private List<WmsBorrowDetails> wmsBorrowDetailsList;

    public void setBorrowUuid(String borrowUuid) 
    {
        this.borrowUuid = borrowUuid;
    }

    public String getBorrowUuid() 
    {
        return borrowUuid;
    }
    public void setWmsDictWarehouse(String wmsDictWarehouse) 
    {
        this.wmsDictWarehouse = wmsDictWarehouse;
    }

    public String getWmsDictWarehouse() 
    {
        return wmsDictWarehouse;
    }
    public void setWmsDictUseType(String wmsDictUseType) 
    {
        this.wmsDictUseType = wmsDictUseType;
    }

    public String getWmsDictUseType() 
    {
        return wmsDictUseType;
    }
    public void setReturnBackSchedule(Date returnBackSchedule) 
    {
        this.returnBackSchedule = returnBackSchedule;
    }

    public Date getReturnBackSchedule() 
    {
        return returnBackSchedule;
    }
    public void setReturnBackDt(Date returnBackDt) 
    {
        this.returnBackDt = returnBackDt;
    }

    public Date getReturnBackDt() 
    {
        return returnBackDt;
    }

    public void setFkConfirmUserId(Long fkConfirmUserId)
    {
        this.fkConfirmUserId = fkConfirmUserId;
    }

    public List<WmsBorrowDetails> getWmsBorrowDetailsList()
    {
        return wmsBorrowDetailsList;
    }

    public void setWmsBorrowDetailsList(List<WmsBorrowDetails> wmsBorrowDetailsList)
    {
        this.wmsBorrowDetailsList = wmsBorrowDetailsList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("borrowUuid", getBorrowUuid())
            .append("wmsDictWarehouse", getWmsDictWarehouse())
            .append("wmsDictUseType", getWmsDictUseType())
            .append("returnBackSchedule", getReturnBackSchedule())
            .append("returnBackDt", getReturnBackDt())
            .append("sysNormalDisable", getSysNormalDisable())
            .append("docTitle", getDocTitle())
            .append("docNum", getDocNum())
            .append("docDt", getDocDt())
            .append("docNote", getDocNote())
            .append("fkAttentionUserId", getFkAttentionUserId())
            .append("fkConfirmUserId", getFkConfirmUserId())
            .append("confirmDt", getConfirmDt())
            .append("oaDictConfirmStatus", getOaDictConfirmStatus())
            .append("confirmNote", getConfirmNote())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("wmsBorrowDetailsList", getWmsBorrowDetailsList())
            .toString();
    }
}
